﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Com.Framework.Page;
using Com.Library.Cookie;

namespace Com.Web.coffinegurunaru.AppLogic.Page
{
    public class ManagerPage : Com.Library.Page.WebPage
    {
        public new ManagerMasterPage WebMaster
        {
            get
            {
                if (this.Master != null)
                {
                    if (base.Master is ManagerMasterPage)
                        return (ManagerMasterPage)base.Master;
                    else
                        return null;
                }
                return null;
            }
        }

        private ManagerCookie m_WebCookie = null;
        public new ManagerCookie WebCookies
        {
            get
            {
                if (WebMaster == null)
                {
                    if (m_WebCookie == null)
                    {
                        m_WebCookie = new ManagerCookie();
                    }
                }
                else
                {
                    this.m_WebCookie = this.WebMaster.WebCookies;
                }

                return m_WebCookie;
            }
        }
    }
}
